package com.woniu.hospital.service;

import com.woniu.user.domain.Dept;
import com.woniu.user.vo.DeptVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("wolf-user")
public interface IDeptService {

    @GetMapping("/dept/de/{id}")
    Dept selectById(@PathVariable("id") long id);

    /**
     * 查询所有的科室
     */
    @GetMapping("/dept/selAllDept")
    List<DeptVo> selAllDept();
}
